<div class="ui menu">
	<span class="active item">邮件</span>
	<div class="right menu">
		<div class="item">
			<div class="ui icon transparent input">
				<input type="text" placeholder="模糊筛选" ng-model="subSearch">
				<i class="search link icon"></i>
			</div>
		</div>
		<a href="#!/mail/add" class="ui item">
			<i class="edit basic icon"></i> 添加邮件
		</a>
	</div>
</div>


<table class="ui table segment">
	<thead>
		<tr>
			<th>名称</th>
			<th>视觉稿</th>
			<th>视觉</th>
			<th>前端</th>
			<th>发送时间</th>
			<th>头图</th>
			<th>编辑</th>
		</tr>
	</thead>
	<tbody>
	<tr ng-repeat="mail in filtered = (mails | orderBy: '-end_time') | filter:subSearch">
		<td>{{mail.name}}</td>
		<td><a href="{{mail.mail_graphic_uri}}" target="_blank">查看</a></td>
		<td>{{mail.personnel_ga.name}}</td>
		<td>{{mail.personnel_fe.name}}</td>
		<td>{{mail.end_time | date:'yyyy-MM-dd'}}</td>
		<td>
			<i class="icon photo tooltip-image">
				<img class="uploaded-image" ng-src="{{mail.mail_cover}}" />
			</i>
		</td>
		<td>
			<a href="#!/mail/edit/{{mail._id}}"
				class="ui button tiny compact">编辑</a>
			<a ng-click="deleteMail(mail._id)"
				class="ui button icon tiny compact">
				<i class="remove icon"></i>
			</a>
		</td>
	</tr>
	</tbody>
</table>

<a href="#!/mail/add" class="ui blue submit button icon">
	<i class="edit basic icon"></i>
	添加邮件
</a>

